########第四种
# List = [1,2,3,4,5,6,7,8,9]
# print(List[::-1])

########第五种
# a = [5,7,6,3,4,1,2]
# a.reverse()    #reverse:列表翻转排序
# print(a)







# 第一种
# List = [1,2,3,4,5,6,7,8,9]
# list=[]
# j=-1
# for i in List:
#     if i not in list:
#         list.insert(j,i)
#         j=j-1 # j-=1
# print(list)

#
# # 第二种
# yssj= [1,2,3,4,5,6,7,8,9]
# def Reverse(yssj):
#     xsj = yssj[::-1]
#     return xsj
#
# print(Reverse(yssj))
#


# 第三种
# yssj= [1,2,3,4,5,6,7,8,9]
# def Reverse(yssj):
#     yssj.reverse()
#     return yssj
# print(Reverse(yssj))

